<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" charset="utf-8" />
<title>cmdb api</title>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">

$(document).ready(function(){
var myapi_url="http://10.68.60.60:8081/myapi"
$.ajax({
    dataType: 'JSONP',//here
    contentType: "application/json;charset=UTF-8",
});
  $("button").click(function(){
  var sih = "";
    $.getJSON(myapi_url,function(result){
//         alert(result.message.运维日志系统)                  
    sihg = result.message;
    for(var key in sihg){
        var key = key;
        var value = sihg[key];
        sih +=key;
        sih +=":"+value;        
}
     $("#dict_result").text(sih);
    
    });
  });
});
</script>
</head>

<body>

<button>cmdb系统</button>
<div id="dict"></div>
<lable id="dict_result"></lable>

</body>
</html>
